/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.openbravo.bean.erp.viewbean;

import com.openbravo.bean.viewbean.Product_V;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Administrator
 */
public class ProductAnalysis extends Product_V {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1230766661056532816L;

	//库存相关
    double multiply;//当前库存量

    double minimum;//最小量
    double maximum;//最大量

    int state;//当前品态
    
    Map<String,ProductTransaction> transaction=new HashMap<String,ProductTransaction>();

    public double getMaximum() {
        return maximum;
    }

    public double getMinimum() {
        return minimum;
    }

    public double getMultiply() {
        return multiply;
    }

    public Map<String, ProductTransaction> getTransaction() {
        return transaction;
    }

    public ProductTransaction getTransaxtion(String orderType){
       return  transaction.get(orderType);
    }

    public void putTransaxtion(String orderType,ProductTransaction tran){
        transaction.put(orderType, tran);
    }

    public void setMaximum(double maximum) {
        this.maximum = maximum;
    }

    public void setMinimum(double minimum) {
        this.minimum = minimum;
    }

    public void setMultiply(double multiply) {
        this.multiply = multiply;
    }

    public void setTransaction(Map<String, ProductTransaction> transaction) {
        this.transaction = transaction;
    }

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

}
